import 'package:bxultimate/data/store/config_store.dart';
import 'package:bxultimate/shared/shared.dart';
import 'package:flutter/material.dart';

import 'light_theme.dart';
import 'dark_theme.dart';
import 'styles/dark_theme_colors.dart';
import 'styles/light_theme_colors.dart';

class AppTheme {
  AppTheme._();

  // 系统级padding
  static const double iDefaultPadding = 12.0;
  static const Color primaryColor = Color(0xFFFFBB95);

  // 圆角
  static const iDefaultRadius = 10.0;

  static const BorderRadiusGeometry iBorderRadius =
      BorderRadius.all(Radius.circular(10));

  static ThemeData light = lightTheme(LightThemeColors());
  static ThemeData dark = darkTheme(DarkThemeColors());

  static ThemeData getCurrentTheme() {
    return ConfigStore.to.theme == AppConstant.themeLight
        ? light
        : dark;
  }
}
